<div class="categories form">
<?php //echo $this->Form->create('Category');?>
<?php echo $this->Form->create('Category', array('enctype' => 'multipart/form-data')); ?>
	<fieldset>
		<legend><?php __('Edit Category'); ?></legend>
	<?php
		echo $this->Form->input('id', array('class'=>'form-control'));
		echo $this->Form->input('parent_id', array('class'=>'form-control'));
		echo $this->Form->input('name', array('class'=>'form-control'));
                $arr = $this->request->data['Category']['image'];
                $isArr = is_array($arr);
                if (!empty($this->request->data['Category']['image']) && $isArr !=1) {
                    echo $this->Html->image('brand/' . $this->request->data['Category']['image'], array('width' => '140px', 'style' => 'margin-left13px'));
                }
                echo $this->Form->input('image', array('type' => 'file'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
